<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>卡片居中案例</title>
    <style>
        body {
            background-color: #f5f5f5;
        }
        .good-detail {
            width: 234px;
            height: 300px;
            background-color: #fff;
            margin: 0 auto;
            text-align: center;

        }

        .title {
            font-size: 14px;
            height: 25px;
        }

        .intr {
            font-size: 12px;
            height: 30px;
            color: #cccccc;
        }
        
        .price {
            font-size: 14px;
            color: #ffa552;
        }
    </style>
</head>
<body>
    <div class="good-detail">
        <img src="./images/car.jpg" width="162" alt="car">
        <div class="title">九号平衡车</div>
        <div class="intr">成年人的玩具</div>
        <div class="price">1999元</div>
    </div>
</body>
</html>